﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="module.ascx.cs" Inherits="ExtraClub.Web.Controls.login_view.module" %>
<%@ Register Src="~/Modules/Controls/login/module.ascx" TagName="Login" TagPrefix="extra" %>
<!-- login -->
<div class="login-view">
    <form id="FormView" runat="server" visible="true">
    <asp:LoginView ID="LoginView1" runat="server">
        <LoggedInTemplate>
            <span class="logged-status">Hello, </span>
        </LoggedInTemplate>
        <AnonymousTemplate>
            <span class="logged-status">Hello guest!</span>
            <extra:Login runat="server" ID="Login" Visible="true" />
        </AnonymousTemplate>
    </asp:LoginView>
    <asp:LoginName ID="LoginName1" CssClass="logged-name" runat="server" />
    <asp:LoginStatus ID="LoginStatus1" CssClass="log-out" LoginText="" LogoutText="log out"
        runat="server" LogoutAction="RedirectToLoginPage" />
    </form>
    <%if (SiteContext.Current.BasePage.MyAccount != null) { %>
    <a href="<%=SiteContext.Current.BasePage.MyAccount %>">To My Account</a>
    <%} %>
</div>
